<script>
 if (cond)
   {
     code_block();
   }
 else
 {

 }

 for (i in array)
   {
     code_block();
   }
</script>
